import type { ToastOptions } from 'wot-design-uni/types/toast'
import { useToast } from 'wot-design-uni'

class TipService {
  private toast = useToast()
  // private notify = useNotify()
  // private message = useMessage()

  public tip = (option: ToastOptions | string) => {
    if (typeof option === 'string') {
      option = { message: option }
    }
    return this.toast(option)
  }
}

export default new TipService()
